# coding=utf-8
__author__ = 'liubin'

import hashlib


def md5(value):
    """
    MD5加密
    :param value:
    :return:
    """
    m = hashlib.md5()
    m.update(value)
    res = m.hexdigest()
    return res